package him.action.board;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import him.action.Action;
import him.action.ActionForward;
import him.dto.bbs.Edu_bbsDTO;

import him.service.EduBoardService;

import him.serviceimple.EduBoardServiceImple;


public class EduUpdatebfAction implements Action {

	@Override
	public ActionForward execute(HttpServletRequest request,
			HttpServletResponse response) {
		ActionForward actforward = new ActionForward();
		EduBoardService service = EduBoardServiceImple.getInstance();
		Edu_bbsDTO dto = new Edu_bbsDTO();
		
		int eduseq = Integer.parseInt(request.getParameter("eduseq"));
		dto.setEduseq(eduseq);
		dto = service.getEducation(dto);
		request.setAttribute("dto", dto);
		actforward.setUrl("eduupdatebf");
		return actforward;
	}

}
